package com.kaifamiao.base.Demo210815;

/**
 * @author lucien-ma
 * @date 2021/9/15
 * @apiNote
 */
public class Demo01 {
    public static void main(String[] args) {
        Super s = new Sub(2);
    }
}

class Super {
    Super(int i) {
        System.out.print("Super" + i + ",");
    }
}

class Sub extends Super {
    static Super s1 = new Super(1);
    Super s2 = new Super(3);
    Sub(int i) {
        super(i);
        System.out.print("Sub" + i + ",");
    }
}
